package com.beidouapp.dao.impl;

import com.beidouapp.dao.EmployeeAndRoleDao;
import com.beidouapp.dao.OrganizationAndRoleDao;
import com.beidouapp.domain.pojo.EmployeeAndRole;
import com.beidouapp.domain.pojo.OrganizationAndRole;
import com.beidouapp.mapper.BaseMapper;
import com.beidouapp.mapper.EmployeeAndRoleMapper;
import com.beidouapp.mapper.OrganizationAndRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public class OrganizationAndRoleDaoImpl extends BaseDaoImpl<OrganizationAndRole> implements OrganizationAndRoleDao {

    @Autowired
    private OrganizationAndRoleMapper organizationAndRoleMapper;

    @Override
    public BaseMapper<OrganizationAndRole> getResourceMapper() {
        return this.organizationAndRoleMapper;
    }

    @Override
    public int addOrganizationAndRoleBatch(Map<String, Object> params){
        return this.organizationAndRoleMapper.addOrganizationAndRoleBatch(params);
    }

}
